export function http(url,method,data){
	let baseUrl="http://demonuxtapi.dishait.cn/mobile"
	uni.showLoading({
		title:"加载中"
	})
	
	
	return new Promise((resolve,reject)=>{
		let token=uni.getStorageSync('token')
			uni.request({
				url:baseUrl+url,
				method:method,
				data:data,
				header:{
					appid: "bd9d01ecc75dbbaaefce",
					token:token
				},
				success(res) {
					resolve(res)
				},
				fail(err) {
					reject(err)
				},
				complete() {
					uni.hideLoading()
				}
			})
	})
}